package cn.itcast.demo1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

//        System.out.println("请录入一个整数: ");

//        if(sc.hasNext()){
//            int num = sc.nextInt();
//            System.out.println("num: "+ num);
//        }

        System.out.println("请录入一个字符串:");
        String str2 = sc.next();
        System.out.println("str2: "+str2);




    }
}
